<!doctype html>
<html>
<head>
    <meta charset=utf-8>
    <title></title>
    <meta name="robots" content="noindex,nofollow">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="<?=Web_Path?>packs/layui/css/layui.css">
    <link rel="stylesheet" href="<?=Web_Path?>packs/admin/css/font.css">
    <link rel="stylesheet" href="<?=Web_Path?>packs/admin/css/style.css">
    <script src="<?=Web_Path?>packs/js/jquery.min.js"></script>
    <script src="<?=Web_Path?>packs/layui/layui.js"></script>
    <script src="<?=Web_Path?>packs/admin/js/cscms.js"></script>
</head>
<body id="index_setting">
    <span class="layui-breadcrumb" >
        <a ><cite><i class="fa fa-map-marker"></i>位置</cite></a>
        <a href="<?=site_url('dance/admin/dance')?>">音乐</a>
        <a href="<?=site_url('dance/admin/saomiao')?>">歌曲扫描</a>
    </span>
    <div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
        <ul class="layui-tab-title">
            <li><a class="tablink" href="<?=site_url('dance/admin/saomiao')?>">服务器硬盘扫描</a></li>
            <li class="layui-this"><a class="tablink" href="<?=site_url('dance/admin/saomiao/ftp')?>">FTP歌曲扫描</a></li>
            <li><a class="tablink" href="<?=site_url('dance/admin/saomiao/ftp_config')?>">FTP扫描配置</a></li>
        </ul>
        <div class="layui-tab-content" style="min-height: 360px;">
             <form class="layui-form layui-form-pane" action="<?=site_url('dance/admin/saomiao/ftpruku')?>" method="post">
                <div class="layui-form-item">
                    <label class="layui-form-label">歌曲参数</label>
                    <div class="layui-input-inline layui-input-inlinew marg10">
                        <select name="cid" lay-verify="required" >
                            <option value="">选择分类</option>
                            <?php
                            $query = $this->db->query("SELECT id,name FROM ".CS_SqlPrefix."dance_list where fid=0 order by xid asc");
                            foreach ($query->result() as $row) {
                                echo '<option value="'.$row->id.'">'.$row->name.'</option>';
                                $query2 = $this->db->query("SELECT id,name FROM ".CS_SqlPrefix."dance_list where fid=".$row->id." order by xid asc"); 
                                foreach ($query2->result() as $row2) {
                                    echo '<option value="'.$row2->id.'">'.$row2->name.'</option>';
                                }
                            }
                            ?>
                        </select>
                    </div>
                    <div class="layui-input-inline layui-input-inlinew">
                        <select name="tid">
                            <option value="0">歌曲专辑</option>
                            <?php
                            $query = $this->db->query("SELECT id,name FROM ".CS_SqlPrefix."dance_topic order by id asc"); 
                            foreach ($query->result() as $row) {
                                echo '<option value="'.$row->id.'">'.$row->name.'</option>';
                            }
                            ?>
                        </select>
                    </div>
                    <div class="layui-input-inline layui-input-inlinew" >
                        <select name="fid">
                            <option value="0">服务器组</option>
                            <?php
                            $query = $this->db->query("SELECT id,name FROM ".CS_SqlPrefix."dance_server order by id asc"); 
                            foreach ($query->result() as $row) {
                                $clas=($row->id==$fid)?' selected="selected"':'';
                                echo '<option value="'.$row->id.'" '.$clas.'>'.$row->name.'</option>';
                            }
                            ?>
                        </select>
                    </div>
                    <div class="layui-input-inline layui-input-inlinew" >
                        <select name="reco">
                            <option value="0">歌曲推荐</option>
                            <option value="1" <?php if($reco=='1') echo ' selected';?>>★☆☆☆☆</option>
                            <option value="2" <?php if($reco=='2') echo ' selected';?>>★★☆☆☆</option>
                            <option value="3" <?php if($reco=='3') echo ' selected';?>>★★★☆☆</option>
                            <option value="4" <?php if($reco=='4') echo ' selected';?>>★★★★☆</option>
                            <option value="5" <?php if($reco=='5') echo ' selected';?>>★★★★★</option>
                        </select>
                    </div>
                    <div class="layui-input-inline layui-input-inlinew" >
                        <select name="yid">
                            <option value="0" >显示</option>
                            <option value="1" >隐藏</option>
                        </select>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">作者参数</label>
                    <div class="layui-input-inline layui-input-inlinew marg10">
                        <input type="text" name="zc" placeholder="作词人" value="" class="layui-input">
                    </div>
                    <div class="layui-input-inline layui-input-inlinew">
                        <input type="text" name="zq" placeholder="作曲人" value="" class="layui-input">
                    </div>
                    <div class="layui-input-inline layui-input-inlinew">
                        <input type="text" name="bq" placeholder="编曲人" value="" class="layui-input">
                    </div>
                    <div class="layui-input-inline layui-input-inlinew">
                        <input type="text" name="hy" placeholder="混缩人" value="" class="layui-input">
                    </div>
                    <div class="layui-input-inline layui-input-inlinew">
                        <input type="text" name="singer" placeholder="歌手名称" value="" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">TAGS标签</label>
                    <div class="layui-input-inline">
                        <input type="text" name="tags" placeholder="多个逗号隔开" value="" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">会员参数</label>
                    <div class="layui-input-inline layui-input-inlinew marg10">
                        <input type="text" name="user" placeholder="会员名称" value="" class="layui-input">
                    </div>
                    <label class="layui-form-label label2">金币</label>
                    <div class="layui-input-inline layui-input-inlinew" >
                        <input type="text" name="cion" value="" placeholder="下载所需金币" class="layui-input">
                    </div>
                    <div class="layui-input-inline layui-input-inlinew">
                        <select name="vip">
                            <option value="0">会员组</option>
                            <?php
                            $query = $this->db->query("SELECT id,name FROM ".CS_SqlPrefix."userzu order by id asc"); 
                            foreach ($query->result() as $row) {
                                echo '<option value="'.$row->id.'">'.$row->name.'</option>';
                            }
                            ?>
                        </select>
                    </div>
                    <div class="layui-input-inline layui-input-inlinew" >
                        <select name="level">
                            <option value="0">会员等级</option>
                            <?php
                            $query = $this->db->query("SELECT id,name FROM ".CS_SqlPrefix."userlevel order by id asc"); 
                            foreach ($query->result() as $row) {
                                echo '<option value="'.$row->id.'">'.$row->name.'</option>';
                            }
                            ?>
                        </select>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">默认模版</label>
                    <div class="layui-input-inline">
                        <input type="text" name="skins" value="play.html" class="layui-input">
                    </div>
                    <div class="layui-form-mid layui-word-aux">默认为play.html</div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">试听后缀</label>
                    <div class="layui-input-inline ">
                        <input type="text" name="playhz" value="" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label"><span class="colorr">* </span>FTP路径</label>
                    <div class="layui-input-inline">
                        <input type="text" name="path" lay-verify="required" value="" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">文件类型</label>
                    <div class="layui-input-inline">
                        <input type="text" name="hz" value="mp3|wma|mp4|m4a" class="layui-input">
                    </div>
                </div>

                <div class="layui-form-item">
                    <div class="layui-input-block layui-input-common noborder">
                        <button class="layui-btn" lay-submit lay-filter="">提交</button>
                        <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
    <script type="text/javascript">
        cscms.init();
    </script>
</body>
</html>
